<?

include("plingsAPI.php");

	$feed = new plingsAPI;
	
	$feed->ApiKey = "5A605302-FC5BC526-4473C6AB-B4D9009B-RQMKMLDM";
	$feed->ApiMode = "authority"; // can be "authority", "postcode", "town", "ward", "activity", "venue" or "provider"
	$feed->LACode = "00EY";
	$feed->NumDays = 7;
	$feed->cacheHrs = 1;
	$feed->cacheFile = "test.xml";
	$feed->cacheStatus = "off";
	
	$activities = $feed->getMyPlings();
	
	   foreach($activities->activities->activity as $activity){
		
			echo $feed->activityLite($activity);
		
	   }
	   


?>